all: dump scatter

dump:
	python showClosest.py dump
	cp dump.* semantic

scatter:
	python semantic/do_pca.py test.rav show $A $B $C $D

#for nqueries in 120 160 200 240 280 320 360 ; do \

test:
	echo "# name, misses, hits, total, hitrate" > results.py
	echo "res = [\\" >> results.py
	for cachetype in PERFECT FIFO LRU LSA ; do \
      for nqueries in 120 160 200 240 ; do \
         ./run.sh $$cachetype $$nqueries >> results.py ; \
      done \
	done
	echo "]" >> results.py
	sed '/http/d' < results.py > results_.py
	mv results_.py results.py
	python genGraphs.py save
